package main.java.com.lee.juc.syncollection;

import java.util.*;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/2/15
 */
public class SynSortedSetDemo {
    public static void main(String[] args) {
        Set<String> hash = new HashSet<>();
        TreeSet<Object> treeSet = new TreeSet<>();
        SortedSet<Object> sortedSet = Collections.synchronizedSortedSet(treeSet);
        sortedSet.add("aaa");
    }
}
